import request from '@/utils/request'

// 获取聊天记录
export function getChatRecordApi() {
  return request({
    url: '/api/ws/getUserChatgroups',
    method: 'post',
    // 传字符串
    // data:touser_uuid
  })
}

// 发送消息
export function sendMessageApi(message: any) {
  return request({
    url: '/api/ws/addMessage',
    method: 'post',
    data:message
  })
}

// 获取一对一聊天人信息
export function getOneByOneApi(data: any) {
  return request({
    url: '/api/ws/HWJInterOne',
    method: 'post',
    data
  })
}